package com.tgg.treeproject.mapper;

import com.tgg.treeproject.pojo.InforationData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 田国刚
 * @since 2023-04-21
 */
@Mapper
public interface InforationDataMapper extends BaseMapper<InforationData> {

@Select("SELECT *   FROM inforation_data where tree_id=#{id} ORDER BY ID DESC LIMIT #{current}, #{size} ")
    List<InforationData> getPage(@Param("current") Integer current, @Param("size") Integer size,@Param("id") String id);
}
